
import pytest

from common.config import *
if __name__ == '__main__':
    # 一部分自定义的
    # pytest.main(["-m", "ljk"])
    # 全部
    # pytest.main([r"E:\work\software\PC\pcprojects\baseKTAuto\testCases\test_doYuanSuan.py::Test_DoYunSuan::test_chu"])
    # 通过alluredir 指定生成json格式的报告的路径
    pytest.main(["--alluredir", report_path ,"--clean-alluredir"])
    # allure serve report_path
    os.system(f"allure generate {report_path} -o {html_path} --clean")
    # pytest.main()
    # os.system(f"allure generate {report_path} -o {html_path} --clean")